package main

import (
	"github.com/bitly/go-simplejson"
	"fmt"
)

func main() {
	str:=`{"servers":[{"serverName":"Shanghai_VPN","serverIP":"127.0.0.1"},{"serverName":"Beijing_VPN","serverIP":"127.0.0.2"}]}`
	js,err:=simplejson.NewJson([]byte(str))
	if err !=nil{
		fmt.Println("json解析错误",err)
	}else {
		arr,_:=js.Get("servers").Array()
		for _,item:=range arr{
			fmt.Println(item)
		}
	}
}
